import { IsNotEmpty, IsOptional, IsString, MaxLength } from "class-validator";

export class AddDto {
    @MaxLength(10)
    @IsNotEmpty()
    @IsString()
    name:string;

    @MaxLength(50)
    @IsNotEmpty()
    @IsString()
    code:string;

    @MaxLength(50)
    @IsNotEmpty()
    @IsString()
    url:string;

    @MaxLength(50)
    @IsNotEmpty()
    @IsString()
    @IsOptional()
    remark:string;
}